package com.kayt.cyberBar.company.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.List;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.company.business.entity.po.BCompanyBaseRank;

public interface ICompanyBaseRankDao {

	public boolean checkValidate(String name) throws SQLException;

	public Long addRank(BCompanyBaseRank rank) throws SQLException;

	public void updateRank(BCompanyBaseRank rank) throws SQLException;

	public int deleteRank(BCompanyBaseRank rank);

	public BCompanyBaseRank getRank(String rankId);

	public BCompanyBaseRank getRankByCode(String code) throws SQLException;

	public PageData<BCompanyBaseRank> getRankList(int pageNum, int pageSize, String hql, Object[] params,
			LinkedHashMap<String, String> orderMap) throws SQLException;

	public List getRankListByHql(int pageNum, int pageSize, String hql, Object[] params) throws SQLException;


}
